<extend name="Public/List/Common"/>

<block name="pageHeader">
    <include file="Public/List/Header/header.search.add.batchDel.navtab" add-title="添加"/>
</block>


<block name="pageContent">
    <div class="bjui-pageContent tableContent">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr>
                <th>
                    编号
                </th>
                <th>
                    答题用户
                </th>
                <th>
                    创建时间
                </th>
                <th>
                    内容
                </th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <volist name="list" id="vo">

                <tr>
                    <td>
                        {$vo.id}
                    </td>
                    <td>
                        {$vo.uid|uidToNickname}
                    </td>
                    <td>
                        {$vo.create_time|time_format}
                    </td>
                    <td style="width: 300px;overflow:visible;white-space:normal;">
                        {$vo.content}
                    </td>
                    <td>
                        <a href="{:U('toggleStatusForAnswer', array('id'=>$vo['id'], 'ask_id'=>I('id')))}" class="btn btn-{$vo['status']==0?'blue':'red'}"
                           data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">{$vo['status']==0?'最佳':'待定'}</a>
                        <a href="{:U('del?id='.$vo['id'])}" class="btn btn-red"
                            data-toggle="doajax">删除</a>
                    </td>
                </tr>

            </volist>

            </tbody>
        </table>
    </div>
</block>